# coding=utf-8
# 记录数 和属性数量
import sys
import pandas as pd
import numpy as np
from pandas.io.json import build_table_schema
names=['Sex','Length','Diameter','Height','Whole weight','Shucked weight','Viscera weight','Shell weight','Rings']
ukdate = pd.read_csv(sys.argv[1],names=names)
if ukdate.empty != True:
    print ukdate.ndim
    if(ukdate.ndim == 2):
        print ukdate.columns.size
        print ukdate.size/ukdate.columns.size
        print ukdate.dtypes
        print ukdate.ftypes
        print ukdate.get_dtype_counts()
        print ukdate.get_ftype_counts()
        print ukdate.axes
        print ukdate.shape
        print ukdate.memory_usage()
        print ukdate.reindex(index=[0,2,5],columns=['Sex'])
else:
    print "no data"
